www.gusucode.com > ROCBOSS微社区-微信论坛程序 v2.1PHP源码程序 > ROCBOSS微社区-微信论坛程序 v2.1/ROCBOSS_v2.1.0/ROCBOSS_v2.1.0/app/template/rocboss/_admin.topic.tpl.php

    <?php die('Access Denied');?>
<link rel="stylesheet" type="text/css" href="{$css}simditor.css" />
<script type="text/javascript" src="{$js}module.js"></script>
<script type="text/javascript" src="{$js}hotkeys.js"></script>
<script type="text/javascript" src="{$js}simditor.js"></script>

<section>
    <ol class="bz-breadcrumb">
        <li><a href="{$root}admin">管理中心</a></li>
        <li class="bz-active">帖子管理</li>
    </ol>

    <form method="post" id="form">
        <table class="bz-table">
            <thead>
                <tr>
                    <th width="30">TID</th>
                    <th>帖子标题</td>
                    <th>用户</td>
                    <th>发布时间</td>
                    <th width="140">操作</td>
                </tr>
            </thead>
            <tbody>
            {loop $topicArray $topic}
                <tr id="topic-{$topic.tid}">
                <td align="center">
                    <input type="checkbox" class="checkbox" name="tid[]" value="{$topic.tid}" />
                </td>
                <td align="left">
                    <a href="{$root}read/{$topic.tid}" title="{$topic.title}" target="_blank" style="white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden; max-width:600px; display:block;">
                        {$topic.title}
                    </a>
                </td>
                <td align="left">
                    <a href="{$root}user/{$topic.uid}" title="{$topic.username}" target="_blank" style="white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow: hidden;">
                        {$topic.username}
                    </a>
                </td>
                <td align="center">
                    {$topic.posttime}
                </td>
                <td align="center">
                    <a href="javascript:editTopicForm({$topic.tid});" class="bz-button bz-button-primary" title="编辑"><i class="iconfont icon-edit x2"></i></a>
                    <a href="javascript:delTopic({$topic.tid});" onclick="if(!(confirm('确定要删除吗?'))) return false;" class="bz-button bz-button-sm" title="删除" id="delTopic-{$topic.tid}"><i class="iconfont icon-shanchu x2"></i></a>
                </td>
                </tr>
            {/loop}
            </tbody>
            <tfoot>
                <tr>
                    <th>
                        <input onclick="selectAll()" type="checkbox" name="controlAll" style="controlAll" id="controlAll"/>
                    </th>
                    <th></th>
                    <th></th>
                    <th></th>
                    <th>
                        <a href="javascript:void(delAllTopic());" onclick="if(!(confirm('确定要删除所选吗?'))) return false;" class="bz-button bz-button-sm" style="font-weight: normal;"><i class="iconfont icon-shanchu x2"></i>删除所选</a>
                    </th>
                </tr>
            </tfoot>
        </table>
    </form>
    <div class="pagination">
        {if empty($topicArray)} 
            暂无数据 
        {else} 
            {$page} 
        {/if}
    </div>
</section>